package main

import (
	"github.com/XiaoMi/soar/common"
	"github.com/XiaoMi/soar/database"
	"github.com/xuender/oils/base"
	"github.com/xuender/oils/logs"
)

func main() {
	conn := base.Panic1(database.NewConnector(&common.Dsn{
		Net:                  "tcp",
		Schema:               "free",
		Timeout:              "3s",
		User:                 "taowai",
		Password:             "Woda@123",
		Addr:                 "192.168.1.13:3306",
		Charset:              "utf8mb4",
		AllowNativePasswords: true,
	}))

	ver, err := conn.Version()
	logs.Info(ver, err)
}
